package org.example.domain.shop.service.discount.filter;


import org.example.domain.shop.adapter.repository.IShopRepository;
import org.example.domain.shop.model.entity.DiscountCalculationContextEntity;
import org.example.domain.shop.model.entity.DiscountCalculationLinkParamEntity;
import org.example.types.design.link.AbstractLogicLinkNode;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.math.BigDecimal;

/**
 * @author yinghuashen
 * @version 1.0
 * @description
 * @date 2025/3/8 00:22
 */

@Component
public class BrandCouponFilter extends AbstractLogicLinkNode<DiscountCalculationLinkParamEntity, DiscountCalculationContextEntity, BigDecimal> {

    @Resource
    private IShopRepository shopRepository;

    @Override
    public BigDecimal execute(DiscountCalculationLinkParamEntity discountCalculationLinkParamEntity, DiscountCalculationContextEntity discountCalculationContextEntity) {
        // TODO 品牌优惠券
        return executeNext(discountCalculationLinkParamEntity, discountCalculationContextEntity);
    }
}
